import Vue from 'vue'
import App from './App'
import VueAxios from 'vue-axios'
import axios from 'config/axios'
import router from './router'
import index from './components/index.js'
import '@/assets/stylus/reset.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Common from './common'
import Print from 'vue-print-nb'
import '@/assets/stylus/iconfont/iconfont.css'
import echarts from 'echarts'
import htmlToPdf from './components/corelib/components/common/htmlToPdf'

Vue.prototype.$echarts = echarts
Vue.use(Print) // 注册
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.use(VueAxios, axios)
Vue.use(index)
Vue.use(Common)
Vue.use(htmlToPdf)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
